package com.study03;

public class Customer implements Runnable {
    private Store store;

    Customer(){};
    Customer(Store store){
        this.store = store;
    }

    @Override
    public void run() {
//        this.store.take();
        try {
            Thread.sleep(500);
            this.store.take();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
